package cc.rengu.redp.flowable.domain;

import lombok.Data;

import java.util.List;

@Data
public class CustomStartNode {
    private List<String> userIds;

    private List<String> roleNames;

    private String formId;

    private String formPath;

    private String formTitle;

    private String formIcon;

    private String formType;

    /**
     * 申请表单验证规则
     */
    private SummitRule summitRule;

    /**
     * 流程准入规则
     */
    private AccessRule accessRule;

    @Data
    public class AccessRule {
        public final static String TYPE_AVIATOR = "1";
        public final static String TYPE_PLUGINS = "2";

        private String type;
        private String aviatorExpression;
        private List<String> accRules;
    }
}
